<template>
  <div>
    <h2>儿子组件：</h2>
    <div>
      只接受a属性：a：{{ a }}
    </div>
    <div>儿子的attrs属性：{{ $attrs }}</div>
    <div>
      <GrandChild v-bind="$attrs" />
    </div>
  </div>
</template>
<script setup lang="ts">
import GrandChild from '@views/communication/05_$attrs/GrandChild.vue'

const props = defineProps(['a'])
// const $attrs = useAttrs()
// console.log('$attrs:',$attrs)
</script>
<style scoped></style>
